<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;

?>
<?php $form = ActiveForm::begin(); ?>
    <table width="100%" class="table-form">
        <tr>
            <th width="80" align="right"><?= $model->attributeLabels()['to']; ?></th>
            <td><?= $form->field($model, 'to', ['template' => '{input}{error}{hint}'])->dropDownList($item, ['style' => 'width:250px','prompt'=>'请选择转向课程'])?></td>
        </tr>
    </table>
    <div style="display: none"><?= Html::submitButton('提交', ['id' => 'dosubmit']) ?></div>
<?php ActiveForm::end(); ?>